package com.huawei.appgallery.apkmanagement.impl.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup.LayoutParams;
import com.huawei.appgallery.foundation.ui.framework.widget.button.FitWidthButton;
import o.cdo;

public class ApkManageButton extends FitWidthButton {
    public ApkManageButton(Context context) {
        super(context, null);
    }

    public ApkManageButton(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    public ApkManageButton(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
    }

    public void onMeasure(int i, int i2) {
        super.onMeasure(i, i2);
        ˊ();
    }

    private void ˎ() {
        LayoutParams layoutParams = getLayoutParams();
        layoutParams.width = cdo.ˏ(getContext(), 64);
        setLayoutParams(layoutParams);
    }

    private void ˊ() {
        if (getContext().getResources().getConfiguration().orientation == 2) {
            ॱ();
        } else {
            ˎ();
        }
    }
}
